package com.hanxiaozhang.oauth2.dto.do2dto;



import com.hanxiaozhang.oauth2.domain.UserDO;
import com.hanxiaozhang.oauth2.dto.UserDTO;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * 功能描述: <br>
 * 〈用户转换〉
 *
 * @Author:hanxinghua
 * @Date: 2020/7/27
 */
@org.mapstruct.Mapper
public interface UserConvert {
    UserConvert MAPPER = Mappers.getMapper(UserConvert.class);

    /**
     * do2dto
     *
     * @param person
     * @return
     */
    UserDTO do2dto(UserDO person);

    /**
     * dos2dtos
     *
     * @param list
     * @return
     */
    List<UserDTO> dos2dtos(List<UserDO> list);

}
